<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace app\portal\controller;

use app\businesscard\service\CardService;
use cmf\controller\HomeBaseController;

class IndexController extends HomeBaseController {
	public function index() {
		$cardService = new CardService();

		$card = $cardService->getCardByUserId(cmf_get_current_user_id());

		$this->assign("card", $card);

		return $this->fetch(':index');
	}
}
